<?php

$brand = new Brand();

if ($brand->load_by_slug($definition[0],true)) {

	function the_title() {
		global $brand;
		echo utf8_encode($brand->title);
	}
	function the_content() {
		global $brand;
		echo utf8_encode($brand->get_content());
	}
		
	function the_brand_json() {
		global $brand;
?>
			idBrand: '<?php echo $brand->get_id(); ?>',
			title: '<?php echo utf8_encode($brand->get_title()); ?>',
			slug: '<?php echo $brand->slug; ?>',
			content: '<?php echo utf8_encode($brand->get_content()); ?>',
			idParent: '<?php echo $brand->id_parent; ?>',
			creationTime: '<?php echo $brand->creation_time; ?>',
			type: '<?php echo $brand->type; ?>'
<?php
	}
	
} else {

	function the_title() {
		global $site;
		echo $site->lang("Not Found");
	}
	function the_content() {
		global $brand;
		echo $brand->_errmsg;
	}
		
	$cur_section = "404";
	
}

?>